//**************************************************************************
// Copyright 2008 Peter Project (http://www.codeplex.com/peter)
//
// License : GNU General Public License (GPL)
// For full text of the license please goto:
// http://www.gnu.org/licenses/gpl-2.0.html
//
// This code is provided on an AS IS basis, with no WARRANTIES,
// CONDITIONS or GUARANTEES of any kind.
//
//		File: PeterInterfaces.cs
//		Purpose: This file holds all the Interfaces for the Peter
//				 Plugin Architecture.
//
//**************************************************************************

using System;
using System.Windows.Forms;

namespace Peter
{
    public partial class SplashScreen : Form
    {
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="closeButton">A Boolean that specifies whether to show the close button or not</param>
        public SplashScreen(bool closeButton)
        {
            InitializeComponent();
            this._btnClose.Visible = closeButton;
        }

        /// <summary>
        /// Closes the Splash Screen
        /// </summary>
        /// <param name="sender">SplashScreen close button</param>
        /// <param name="e">Events</param>
        private void _btnClose_Click (object sender, EventArgs e)
        {
            this.Close();
        }
    }
}